﻿
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace LuxsanTool.Tool
{
    public partial class frmScript : Form
    {
        public frmScript()
        {
            InitializeComponent();
        }

        public void AddScriptControl(Control control)
        {
            panel1.Controls.Clear();
            Form ScriptForm = control as Form;
            ScriptForm.TopLevel = false;
            ScriptForm.FormBorderStyle = FormBorderStyle.None;

            panel1.Controls.Add(ScriptForm);
            ScriptForm.Show();
            ScriptForm.Dock = DockStyle.Fill;
        }

        public void SetCap(string _Name)
        {
            labName.Text = _Name;
        }

    }
}


